package at.fhj.itm11.forum.beans;

import java.io.Serializable;
import java.util.List;

import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.inject.Inject;

import at.fhj.itm11.forum.data.IconRepository;
import at.fhj.itm11.forum.model.Icon;

@ManagedBean
@RequestScoped
public class IconBean implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 66251828508026556L;

	@Inject
	private IconRepository iconRepository;
	
	private List<Icon> icons;
	
	@PostConstruct
	public void init() {
		icons = iconRepository.getIcons();
	}

	public List<Icon> getIcons() {
		return icons;
	}

	public void setIcons(List<Icon> icons) {
		this.icons = icons;
	}
}